﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddEnterprise.aspx.cs"
    Inherits="LDSP.UI.Admin.AddEnterprise" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>企业信息编辑</title>
    <link type="text/css" href="../../styles/bg.css" rel="Stylesheet" />
    <style type="text/css">
        .style1
        {
            width: 20%;
        }
        .style2
        {
            text-align: left;
            padding-left: 10px;
            width: 20%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="pnl_script" runat="server" RenderMode="Inline">
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <img src="../../images/loadding.gif" />
            数据加载中，请稍候...
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div class="mngTitle">
        <span class="mngEmphasis">企业信息</span>编辑
        <asp:Label ID="lbl_op" runat="server" Text=""></asp:Label>
    </div>
    <div>
        <table class="mngDetail">
            <tr>
                <td class="style2">
                    企业名称：
                </td>
                <td class="itemValue">
                    <asp:TextBox ID="txt_code" runat="server" CssClass="itemCtrl"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_code"
                        ErrorMessage="必选项*" Font-Size="9pt" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    行业：
                </td>
                <td class="itemValue">
                    <asp:DropDownList ID="ddl_industry" runat="server" CssClass="itemCtrl">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    地址：
                </td>
                <td class="itemValue">
                    <asp:TextBox ID="txt_address" runat="server" CssClass="itemCtrl"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    电话：
                </td>
                <td class="itemValue">
                    <asp:TextBox ID="txt_phone" runat="server" CssClass="itemCtrl"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    联系人：
                </td>
                <td class="itemValue">
                    <asp:TextBox ID="txt_contact" runat="server" CssClass="itemCtrl"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    电子邮件：
                </td>
                <td class="itemValue">
                    <asp:TextBox ID="txt_email" runat="server" CssClass="itemCtrl"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    是否有效：
                </td>
                <td class="itemValue">
                    <asp:CheckBox ID="chb_isValid" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    是否允许普通用户管理适用法规：
                </td>
                <td class="itemValue">
                    <asp:CheckBox ID="chb_supportManageFavorite" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    是否允许企业用户接收短信：
                </td>
                <td class="itemValue">
                    <asp:CheckBox ID="chb_supportSMS" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    是否集团公司：
                </td>
                <td class="itemValue">
                    <asp:CheckBox ID="chk_isGroup" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    母公司：
                </td>
                <td class="itemValue">
                    <asp:DropDownList ID="ddl_ParentCompany" runat="server" CssClass="itemCtrl">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    备注：
                </td>
                <td class="itemValue">
                    <asp:TextBox ID="txt_comment" TextMode="MultiLine" runat="server" CssClass="itemCtrlMulti"></asp:TextBox>
                </td>
            </tr>
            <tr id="tr_subdiary" runat="server">
                <td class="style1">
                    子公司列表：
                </td>
                <td>
                    <asp:GridView ID="grd_list" runat="server" AutoGenerateColumns="False" EmptyDataText="当前没有查到任何数据！"
                        DataKeyNames="id" OnRowDataBound="grd_list_RowDataBound" BackColor="#666699"
                        BorderColor="#999999" AllowPaging="true" AllowSorting="true" CellPadding="3"
                        GridLines="Vertical" Width="100%" OnPageIndexChanging="grd_list_PageIndexChanging"
                        OnSorting="grd_list_Sorting">
                        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                        <RowStyle BackColor="#EEEEEE" ForeColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                        <EmptyDataRowStyle BorderStyle="None" BorderWidth="0px" Font-Bold="True" Font-Size="16pt"
                            ForeColor="white" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" ItemStyle-Width="30px" ItemStyle-HorizontalAlign="Center">
                            </asp:BoundField>
                            <asp:BoundField HeaderText="行业" ItemStyle-Width="90px" ItemStyle-HorizontalAlign="Center">
                            </asp:BoundField>
                            <asp:BoundField DataField="code" HeaderText="企业名称" SortExpression="code" ItemStyle-Width="150px">
                            </asp:BoundField>
                            <asp:BoundField DataField="address" HeaderText="地址" SortExpression="address" ItemStyle-Width="250px">
                            </asp:BoundField>
                            <asp:BoundField DataField="phone" HeaderText="电话" SortExpression="phone" ItemStyle-Width="80px">
                            </asp:BoundField>
                            <asp:BoundField DataField="contact" HeaderText="联系人" SortExpression="contact" ItemStyle-Width="100px">
                            </asp:BoundField>
                            <asp:BoundField DataField="email" HeaderText="电子邮件" SortExpression="email" ItemStyle-Width="130px">
                            </asp:BoundField>
                            <asp:BoundField DataField="isValid" HeaderText="有效" SortExpression="isValid" ItemStyle-Width="40px"
                                ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                        </Columns>
                        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="#DCDCDC" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="style2">
                </td>
                <td class="itemValue">
                    <asp:Button ID="btn_ok" runat="server" Text="确定" OnClick="btn_ok_Click" CssClass="mngBtn" />
                    <asp:Button ID="btn_add" runat="server" Text="新增" OnClick="btn_add_Click" CausesValidation="False"
                        CssClass="mngBtn" />
                    <input type="button" value="进入管理" onclick="javascript:location.href='MngEnterprise.aspx'"
                        class="mngBtn" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
